package com.ruoyi.yljf.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.yljf.domain.GoodsOrder;
import com.ruoyi.yljf.domain.Order;
import com.ruoyi.yljf.domain.dto.CreateDTO.CerateOrderDTO;
import com.ruoyi.yljf.domain.dto.OrderDTO;
import com.ruoyi.yljf.domain.vo.OrderVO;

/**
 * 订单Service接口
 * 
 * @author metaee
 * @date 2025-03-26
 */
public interface IOrderService extends IService<Order> {
    /**
     * 查询订单列表
     * 
     * @param order 订单
     * @return 订单集合
     */
    public List<Order> selectOrderList(Order order);


    List<OrderVO> selectOrders(List<Order> orders);

    //查询课程订单列表
    List<Order> selectAllOrder(OrderDTO orderDTO);

    List<Order> selectActiveOrder(OrderDTO orderDTO);

    List<Order> selectBookOrder(OrderDTO orderDTO);

    List<GoodsOrder> selectPointsOrder(OrderDTO orderDTO);

    AjaxResult createOrder(CerateOrderDTO dto);

    AjaxResult toPay(String number);
}
